package com.shitu;

import android.app.Application;
import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.shitu.base.net.API;
import com.shitu.base.utils.SP;
import com.shitu.soulemo.utils.AccountHelper;
import com.yuyh.library.imgsel.ISNav;
import com.yuyh.library.imgsel.common.ImageLoader;

public class MainApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        API.init(false);

        ISNav.getInstance().init(new ImageLoader() {
            @Override
            public void displayImage(Context context, String path, ImageView imageView) {
                Glide.with(context).load(path).into(imageView);
            }
        });

        SP.init(getApplicationContext());

        AccountHelper.init();
    }
}
